<?php
/**
 * @link http://www.yiiframework.com/
 * @copyright Copyright (c) 2008 Yii Software LLC
 * @license http://www.yiiframework.com/license/
 */

namespace app\assets;

use yii\web\AssetBundle;

/**
 * @author Qiang Xue <qiang.xue@gmail.com>
 * @since 2.0
 */
class AdminAsset extends AssetBundle
{
    
    public function registerAssetFiles($view)
    {

        //加载css，js是有业务逻辑的
        $this->css = [
            'css/web/bootstrap.min.css',
            'font-awesome/css/font-awesome.css',
            'css/web/style.css?ver=' . RELEASE_VERSION,
        ];

        $this->js = [
            'plugins/jquery-2.1.1.js',
            'js/web/bootstrap.js',
            'plugins/layer/layer.js',
            'js/web/common.js',
        ];

        parent::registerAssetFiles($view);
    }
}
